﻿using Newtonsoft.Json;
using System;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 授权登录结果
    /// </summary>
    [Serializable]
    public class WechatLoginData
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [JsonProperty("user_id"), JsonPropertyName("user_id")]
        public long UserId { get; set; }

        /// <summary>
        /// Token
        /// </summary>
        [JsonProperty("token"), JsonPropertyName("token")]
        public string Token { get; set; }

        /// <summary>
        /// openid
        /// </summary>
        [JsonProperty("open_id"), JsonPropertyName("open_id")]
        public string OpenId { get; set; }

        /// <summary>
        /// 登录账号
        /// </summary>
        [JsonProperty("phone"), JsonPropertyName("phone")]
        public string Phone { get; set; }

        /// <summary>
        /// 分组
        /// </summary>
        [JsonProperty("group_id"), JsonPropertyName("group_id")]
        public long GroupId { get; set; }

        /// <summary>
        /// 邀请码
        /// </summary>
        [JsonProperty("invite_code"), JsonPropertyName("invite_code")]
        public string InviteCode { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        [JsonProperty("profile"), JsonPropertyName("profile")]
        public string Profile { get; set; }
    }

}